package com.pingba.serviceImpl.location;

import com.pingba.dao.BaseDao;
import com.pingba.dao.location.ProvinceDao;
import com.pingba.entity.location.Province;
import com.pingba.service.location.ProvinceService;
import com.pingba.serviceImpl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2015/12/23 0023.
 */

@Service("provinceService")
public class ProvinceServiceImpl extends BaseServiceImpl<Province, Long> implements ProvinceService {

    @Autowired
    private ProvinceDao provinceDao;
    @Override
    public BaseDao<Province, Long> getDao() {
        return provinceDao;
    }

    @Override
    public List<Province> getAllProvinces() {
        return provinceDao.getAllProvinces();
    }
}
